\hypertarget{class_mathematica_translator_1_1_scanner}{
\section{\-Mathematica\-Translator\-:\-:\-Scanner \-Class \-Reference}
\label{class_mathematica_translator_1_1_scanner}\index{\-Mathematica\-Translator\-::\-Scanner@{\-Mathematica\-Translator\-::\-Scanner}}
}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_mathematica_translator_1_1_scanner_a3ab13e060d80e7131a7f6b51602f7a7e}{\-Scanner} (std\-::istream $\ast$arg\-\_\-yyin=0, std\-::ostream $\ast$arg\-\_\-yyout=0)
\item 
virtual \hyperlink{class_mathematica_translator_1_1_scanner_aff0ee81133fa47ce18d0c37e2ad20e26}{$\sim$\-Scanner} ()
\item 
virtual \hyperlink{class_mathematica_translator_1_1_parser_a794d42ba0e674e7850e1d87a186deb3a}{\-Parser\-::token\-\_\-type} \hyperlink{class_mathematica_translator_1_1_scanner_a7416d70491166a6df5a51ef02a8f2dcf}{lex} (\hyperlink{union_mathematica_translator_1_1_parser_1_1semantic__type}{\-Parser\-::semantic\-\_\-type} $\ast$yylval, \hyperlink{class_mathematica_translator_1_1_parser_a5a105c5cd54197df5a22f48b329b73c1}{\-Parser\-::location\-\_\-type} $\ast$yylloc)
\item 
void \hyperlink{class_mathematica_translator_1_1_scanner_a635faa6a65acaaf4bf4cd65fd73f969c}{set\-\_\-debug} (bool b)
\end{DoxyCompactItemize}


\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{class_mathematica_translator_1_1_scanner_a3ab13e060d80e7131a7f6b51602f7a7e}{
\index{\-Mathematica\-Translator\-::\-Scanner@{\-Mathematica\-Translator\-::\-Scanner}!\-Scanner@{\-Scanner}}
\index{\-Scanner@{\-Scanner}!MathematicaTranslator::Scanner@{\-Mathematica\-Translator\-::\-Scanner}}
\subsubsection[{\-Scanner}]{\setlength{\rightskip}{0pt plus 5cm}\-Mathematica\-Translator\-::\-Scanner\-::\-Scanner (
\begin{DoxyParamCaption}
\item[{std\-::istream $\ast$}]{arg\-\_\-yyin = {\ttfamily 0}, }
\item[{std\-::ostream $\ast$}]{arg\-\_\-yyout = {\ttfamily 0}}
\end{DoxyParamCaption}
)}}
\label{class_mathematica_translator_1_1_scanner_a3ab13e060d80e7131a7f6b51602f7a7e}
\-Create a new scanner object. \-The streams arg\-\_\-yyin and arg\-\_\-yyout default to cin and cout, but that assignment is only made when initializing in yylex(). \hypertarget{class_mathematica_translator_1_1_scanner_aff0ee81133fa47ce18d0c37e2ad20e26}{
\index{\-Mathematica\-Translator\-::\-Scanner@{\-Mathematica\-Translator\-::\-Scanner}!$\sim$\-Scanner@{$\sim$\-Scanner}}
\index{$\sim$\-Scanner@{$\sim$\-Scanner}!MathematicaTranslator::Scanner@{\-Mathematica\-Translator\-::\-Scanner}}
\subsubsection[{$\sim$\-Scanner}]{\setlength{\rightskip}{0pt plus 5cm}\-Mathematica\-Translator\-::\-Scanner\-::$\sim$\-Scanner (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_mathematica_translator_1_1_scanner_aff0ee81133fa47ce18d0c37e2ad20e26}
\-Required for virtual functions 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{class_mathematica_translator_1_1_scanner_a7416d70491166a6df5a51ef02a8f2dcf}{
\index{\-Mathematica\-Translator\-::\-Scanner@{\-Mathematica\-Translator\-::\-Scanner}!lex@{lex}}
\index{lex@{lex}!MathematicaTranslator::Scanner@{\-Mathematica\-Translator\-::\-Scanner}}
\subsubsection[{lex}]{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf \-Parser\-::token\-\_\-type} \-Mathematica\-Translator\-::\-Scanner\-::lex (
\begin{DoxyParamCaption}
\item[{{\bf \-Parser\-::semantic\-\_\-type} $\ast$}]{yylval, }
\item[{{\bf \-Parser\-::location\-\_\-type} $\ast$}]{yylloc}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_mathematica_translator_1_1_scanner_a7416d70491166a6df5a51ef02a8f2dcf}
\-This is the main lexing function. \-It is generated by flex according to the macro declaration \-Y\-Y\-\_\-\-D\-E\-C\-L above. \-The generated bison parser then calls this virtual function to fetch new tokens. \hypertarget{class_mathematica_translator_1_1_scanner_a635faa6a65acaaf4bf4cd65fd73f969c}{
\index{\-Mathematica\-Translator\-::\-Scanner@{\-Mathematica\-Translator\-::\-Scanner}!set\-\_\-debug@{set\-\_\-debug}}
\index{set\-\_\-debug@{set\-\_\-debug}!MathematicaTranslator::Scanner@{\-Mathematica\-Translator\-::\-Scanner}}
\subsubsection[{set\-\_\-debug}]{\setlength{\rightskip}{0pt plus 5cm}void \-Mathematica\-Translator\-::\-Scanner\-::set\-\_\-debug (
\begin{DoxyParamCaption}
\item[{bool}]{b}
\end{DoxyParamCaption}
)}}
\label{class_mathematica_translator_1_1_scanner_a635faa6a65acaaf4bf4cd65fd73f969c}
\-Enable debug output (via arg\-\_\-yyout) if compiled into the scanner. 

\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\-Scanner.\-h\item 
\-Scanner.\-cpp\end{DoxyCompactItemize}
